#ifndef GLCHILDFRACTAL_H
#define GLCHILDFRACTAL_H

#include <QTimer>
#include "glchild.h"
#include "../fractal/koch.h"

class GLChildFractal : public GLChild
{
    Q_OBJECT

public:
    GLChildFractal();
    ~GLChildFractal();

    void resetView();

    void generate();

protected:
    virtual void paintGL();

    void ViewAll(bool check_first = true);

private:
    Fractal *fractal;

    QTimer *timer;
    clock_t timeStart;
};

#endif // GLCHILDFRACTAL_H
